/*
  Copyright 2019 by Sean Luke and George Mason University
  Licensed under the Academic Free License version 3.0
  See the file "LICENSE" for more information
*/

package sim.engine;

/** 
    A simple implementation of Stopping in a Steppable.  All Steppables in
    Distributed MASON must implement Stopping, and so this provides a convenient
    object to subclass to do this.
*/

public abstract class DSteppable extends DObject implements Stopping
    {
    private static final long serialVersionUID = 1L;

    Stoppable stop = null;

    public Stoppable getStoppable()
        {
        return stop;
        }

    public void setStoppable(Stoppable stop)
        {
        this.stop = stop;
        }

    public boolean isStopped()
        {
        return stop == null;
        }

    }
